﻿<!DOCTYPE HTML>
<html lang="zh-cn">
<head>
<title>结果详情页面</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" type="text/css" href="/mp/css/base.css" media="all">
<link rel="stylesheet" type="text/css" href="/mp/css/mm_style.css" media="all">
<link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
<link rel="stylesheet" type="text/css" href="/mp/swiper4/css/swiper.min.css" media="all">
</head>
<div class="mHeader">
    <h4 class="" id="questionIndex"></h4>
</div>
<script id="demo" type="text/html">
    <div class="swiper-container">
        <div class="swiper-wrapper">
            {{#  layui.each(d, function(index, item){ }}
            <div class="swiper-slide">
                <div class="content pat140">
                    {{#  if(item.questionType === 2){ }}
                    <p class="fsSmall30 col3 topicItem padd20"><img src="/mp/images/duoxuan.png" alt="" class="dxIcon">{{ item.questionContent }}</p>
                        {{#  if(item.hasOwnProperty("hisOption")){ }}
                            <div class="popCheckOne ">
                                {{#  if(item.hisOption.indexOf("A")!=-1){ }}
                                    <input type="checkbox" disabled value="A" name="dx"  checked >
                                {{# } else  { }}
                                    <input type="checkbox" disabled value="A" name="dx" >
                                {{#  } }}
                                <label class="col3">A.{{ item.optionA }}</label>
                            </div>
                            <div class="popCheckOne">
                                {{#  if(item.hisOption.indexOf("B")!=-1){ }}
                                    <input type="checkbox" disabled value="B" name="dx"  checked>
                                {{# } else  { }}
                                    <input type="checkbox" disabled value="B" name="dx"  >
                                {{#  } }}
                                <label class="col3">B.{{ item.optionB }}</label>
                            </div>
                            {{#  if(item.optionC!=null && item.optionC.length>0){ }}
                            <div class="popCheckOne">
                                {{#  if(item.hisOption.indexOf("C")!=-1){ }}
                                <input type="checkbox" disabled value="C" name="dx"  checked>
                                {{# } else  { }}
                                <input type="checkbox" disabled value="C" name="dx"  >
                                {{#  } }}
                                <label class="col3">C.{{ item.optionC }}</label>
                            </div>
                            {{#  } }}
                            {{#  if(item.optionD!=null && item.optionD.length>0){ }}
                            <div class="popCheckOne">
                                {{#  if(item.hisOption.indexOf("D")!=-1){ }}
                                <input type="checkbox" disabled value="D" name="dx"  checked>
                                {{# } else  { }}
                                <input type="checkbox" disabled value="D" name="dx"  >
                                {{#  } }}
                                <label class="col3">D.{{ item.optionD }}</label>
                            </div>
                            {{#  } }}
                            {{#  if(item.optionE!=null && item.optionE.length>0){ }}
                            <div class="popCheckOne">
                                {{#  if(item.hisOption.indexOf("E")!=-1){ }}
                                <input type="checkbox" disabled value="E" name="dx"  checked>
                                {{# } else  { }}
                                <input type="checkbox" disabled value="E" name="dx"  >
                                {{#  } }}
                                <label class="col3">E.{{ item.optionE }}</label>
                            </div>
                            {{#  } }}
                            {{#  if(item.optionF!=null && item.optionF.length>0){ }}
                            <div class="popCheckOne">
                                {{#  if(item.hisOption.indexOf("F")!=-1){ }}
                                <input type="checkbox" disabled value="F" name="dx"  checked>
                                {{# } else  { }}
                                <input type="checkbox" disabled value="F" name="dx"  >
                                {{#  } }}
                                <label class="col3">F.{{ item.optionF }}</label>
                            </div>
                            {{#  } }}
                        {{# } else  { }}
                            <div class="popCheckOne">
                                <input type="checkbox" disabled value="A" name="dx" >
                                <label class="col3">A.{{ item.optionA }}</label>
                            </div>
                            <div class="popCheckOne">
                                <input type="checkbox" disabled value="B" name="dx" >
                                <label class="col3">B.{{ item.optionB }}</label>
                            </div>
                            {{#  if(item.optionC!=null && item.optionC.length>0){ }}
                            <div class="popCheckOne">
                                <input type="checkbox" disabled value="C" name="dx">
                                <label class="col3">C.{{ item.optionC }}</label>
                            </div>
                            {{#  } }}
                            {{#  if(item.optionD!=null && item.optionD.length>0){ }}
                            <div class="popCheckOne">
                                <input type="checkbox" disabled value="D" name="dx">
                                <label class="col3">D.{{ item.optionD }}</label>
                            </div>
                            {{#  } }}
                            {{#  if(item.optionE!=null && item.optionE.length>0){ }}
                            <div class="popCheckOne">
                                <input type="checkbox" disabled value="E" name="dx">
                                <label class="col3">E.{{ item.optionE }}</label>
                            </div>
                            {{#  } }}
                            {{#  if(item.optionF!=null && item.optionF.length>0){ }}
                            <div class="popCheckOne">
                                <input type="checkbox" disabled value="F" name="dx">
                                <label class="col3">F.{{ item.optionF }}</label>
                            </div>
                            {{#  } }}
                        {{#  } }}
                    {{# } else  { }}
                        <p class="fsSmall30 col3 topicItem padd20">
                            {{#  if(item.questionType === 1){ }}
                            <img src="/mp/images/dx.png" alt="" class="dxIcon">
                            {{# } else  { }}
                            <img src="/mp/images/pd.png" alt="" class="dxIcon">
                            {{#  } }}
                            {{ item.questionContent }}
                        </p>
                        <div class="singleRadio padd20">
                            <!--他的选项不为空-->
                            {{#  if(item.hasOwnProperty("hisOption")){ }}
                                <!--他的选项==正确答案-->
                                {{#  if(item.hisOption == item.questionAnswer){ }}
                                    <!--他的选项==正确答案A-->
                                        {{#  if(item.hisOption.indexOf("A")!=-1){ }}
                                        <div class="radios radioCorrectBox">
                                        <input type="radio" disabled value="A" checked>
                                        <label class="radioStyle radioCorrect radioStyleOther">A.{{ item.optionA }}</label>
                                        </div>
                                    <!--他的选项!=正确答案A-->
                                        {{# } else  { }}
                                        <div class="radios">
                                        <input type="radio" disabled value="A" >
                                        <label class="radioStyle">A.{{ item.optionA }}</label>
                                        </div>
                                        {{#  } }}
                                    <!--他的选项==正确答案B-->
                                    {{#  if(item.hisOption.indexOf("B")!=-1){ }}
                                    <div class="radios radioCorrectBox">
                                        <input type="radio" disabled value="B" checked>
                                        <label class="radioStyle radioCorrect radioStyleOther">B.{{ item.optionB }}</label>
                                    </div>
                                    <!--他的选项!=正确答案B-->
                                    {{# } else  { }}
                                    <div class="radios">
                                        <input type="radio" disabled value="B" >
                                        <label class="radioStyle">B.{{ item.optionB }}</label>
                                    </div>
                                    {{#  } }}
                                    <!--存在选项C-->
                                    {{#  if(item.optionC!=null && item.optionC.length>0){ }}
                                        <!--他的选项==正确答案C-->
                                        {{#  if(item.hisOption.indexOf("C")!=-1){ }}
                                        <div class="radios radioCorrectBox">
                                            <input type="radio" disabled value="C" checked>
                                            <label class="radioStyle radioCorrect radioStyleOther">C.{{ item.optionC }}</label>
                                        </div>
                                        <!--他的选项!=正确答案C-->
                                        {{# } else  { }}
                                        <div class="radios">
                                            <input type="radio" disabled value="C" >
                                            <label class="radioStyle">C.{{ item.optionC }}</label>
                                        </div>
                                        {{#  } }}
                                    {{#  } }}
                                    <!--存在选项D-->
                                    {{#  if(item.optionD!=null && item.optionD.length>0){ }}
                                        <!--他的选项==正确答案D-->
                                        {{#  if(item.hisOption.indexOf("D")!=-1){ }}
                                        <div class="radios radioCorrectBox">
                                            <input type="radio" disabled value="D" checked>
                                            <label class="radioStyle radioCorrect radioStyleOther">D.{{ item.optionD }}</label>
                                        </div>
                                        <!--他的选项!=正确答案D-->
                                        {{# } else  { }}
                                        <div class="radios">
                                            <input type="radio" disabled value="D" >
                                            <label class="radioStyle">D.{{ item.optionD }}</label>
                                        </div>
                                        {{#  } }}
                                    {{#  } }}
                                    <!--存在选项E-->
                                    {{#  if(item.optionE!=null && item.optionE.length>0){ }}
                                        <!--他的选项==正确答案E-->
                                        {{#  if(item.hisOption.indexOf("E")!=-1){ }}
                                        <div class="radios radioCorrectBox">
                                            <input type="radio" disabled value="E" checked>
                                            <label class="radioStyle radioCorrect radioStyleOther">E.{{ item.optionE }}</label>
                                        </div>
                                        <!--他的选项!=正确答案E-->
                                        {{# } else  { }}
                                        <div class="radios">
                                            <input type="radio" disabled value="E" >
                                            <label class="radioStyle">E.{{ item.optionE }}</label>
                                        </div>
                                        {{#  } }}
                                    {{#  } }}
                                    <!--存在选项F-->
                                    {{#  if(item.optionF!=null && item.optionF.length>0){ }}
                                        <!--他的选项==正确答案F-->
                                        {{#  if(item.hisOption.indexOf("F")!=-1){ }}
                                        <div class="radios radioCorrectBox">
                                            <input type="radio" disabled value="F" checked>
                                            <label class="radioStyle radioCorrect radioStyleOther">F.{{ item.optionF }}</label>
                                        </div>
                                        <!--他的选项!=正确答案F-->
                                        {{# } else  { }}
                                        <div class="radios">
                                            <input type="radio" disabled value="F" >
                                            <label class="radioStyle">F.{{ item.optionF }}</label>
                                        </div>
                                        {{#  } }}
                                    {{#  } }}
                                <!--他的选项！=正确答案-->
                                {{# } else  { }}
                                <!--选项A-->
                                    {{#  if(item.hisOption.indexOf("A")!=-1){ }}
                                        <div class="radios radioWrongBox">
                                            <input type="radio" disabled value="A" checked>
                                            <label class="radioStyle radioWrong">A.{{ item.optionA }}</label>
                                        </div>
                                    {{# } else if(item.questionAnswer.indexOf("A")!=-1) { }}
                                        <div class="radios radioCorrectBox">
                                             <input type="radio" disabled value="A" checked>
                                             <label class="radioStyle radioCorrect radioStyleOther">A.{{ item.optionA }}</label>
                                        </div>
                                    {{# } else  { }}
                                        <div class="radios">
                                             <input type="radio" disabled value="A" >
                                             <label class="radioStyle">A.{{ item.optionA }}</label>
                                        </div>
                                    {{#  } }}
                                <!--选项B-->
                                    {{#  if(item.hisOption.indexOf("B")!=-1){ }}
                                        <div class="radios radioWrongBox">
                                            <input type="radio" disabled value="B" checked>
                                            <label class="radioStyle radioWrong">B.{{ item.optionB }}</label>
                                        </div>
                                    {{# } else if(item.questionAnswer.indexOf("B")!=-1) { }}
                                        <div class="radios radioCorrectBox">
                                            <input type="radio" disabled value="B" checked>
                                            <label class="radioStyle radioCorrect radioStyleOther">B.{{ item.optionB }}</label>
                                        </div>
                                    {{# } else  { }}
                                        <div class="radios">
                                            <input type="radio" disabled value="B" >
                                            <label class="radioStyle">B.{{ item.optionB }}</label>
                                        </div>
                                    {{#  } }}
                                <!--选项C-->
                                    {{#  if(item.optionC!=null && item.optionC.length>0){ }}
                                        {{#  if(item.hisOption.indexOf("C")!=-1){ }}
                                        <div class="radios radioWrongBox">
                                            <input type="radio" disabled value="C" checked>
                                            <label class="radioStyle radioWrong">C.{{ item.optionC }}</label>
                                        </div>
                                        {{# } else if(item.questionAnswer.indexOf("C")!=-1) { }}
                                        <div class="radios radioCorrectBox">
                                            <input type="radio" disabled value="C" checked>
                                            <label class="radioStyle radioCorrect radioStyleOther">C.{{ item.optionC }}</label>
                                        </div>
                                        {{# } else  { }}
                                        <div class="radios">
                                            <input type="radio" disabled value="C" >
                                            <label class="radioStyle">C.{{ item.optionC }}</label>
                                        </div>
                                        {{#  } }}
                                    {{#  } }}
                                <!--选项D-->
                                    {{#  if(item.optionD!=null && item.optionD.length>0){ }}
                                        {{#  if(item.hisOption.indexOf("D")!=-1){ }}
                                        <div class="radios radioWrongBox">
                                            <input type="radio" disabled value="D" checked>
                                            <label class="radioStyle radioWrong">D.{{ item.optionD }}</label>
                                        </div>
                                        {{# } else if(item.questionAnswer.indexOf("D")!=-1) { }}
                                        <div class="radios radioCorrectBox">
                                            <input type="radio" disabled value="D" checked>
                                            <label class="radioStyle radioCorrect radioStyleOther">D.{{ item.optionD }}</label>
                                        </div>
                                        {{# } else  { }}
                                        <div class="radios">
                                            <input type="radio" disabled value="D" >
                                            <label class="radioStyle">D.{{ item.optionD }}</label>
                                        </div>
                                        {{#  } }}
                                    {{#  } }}
                                <!--选项E-->
                                    {{#  if(item.optionE!=null && item.optionE.length>0){ }}
                                        {{#  if(item.hisOption.indexOf("E")!=-1){ }}
                                        <div class="radios radioWrongBox">
                                            <input type="radio" disabled value="E" checked>
                                            <label class="radioStyle radioWrong">E.{{ item.optionE }}</label>
                                        </div>
                                        {{# } else if(item.questionAnswer.indexOf("E")!=-1) { }}
                                        <div class="radios radioCorrectBox">
                                            <input type="radio" disabled value="E" checked>
                                            <label class="radioStyle radioCorrect radioStyleOther">E.{{ item.optionE }}</label>
                                        </div>
                                        {{# } else  { }}
                                        <div class="radios">
                                            <input type="radio" disabled value="E" >
                                            <label class="radioStyle">E.{{ item.optionE }}</label>
                                        </div>
                                        {{#  } }}
                                    {{#  } }}
                                <!--选项F-->
                                    {{#  if(item.optionF!=null && item.optionF.length>0){ }}
                                        {{#  if(item.hisOption.indexOf("F")!=-1){ }}
                                        <div class="radios radioWrongBox">
                                            <input type="radio" disabled value="F" checked>
                                            <label class="radioStyle radioWrong">F.{{ item.optionF }}</label>
                                        </div>
                                        {{# } else if(item.questionAnswer.indexOf("F")!=-1) { }}
                                        <div class="radios radioCorrectBox">
                                            <input type="radio" disabled value="F" checked>
                                            <label class="radioStyle radioCorrect radioStyleOther">F.{{ item.optionF }}</label>
                                        </div>
                                        {{# } else  { }}
                                        <div class="radios">
                                            <input type="radio" disabled value="F" >
                                            <label class="radioStyle">F.{{ item.optionF }}</label>
                                        </div>
                                        {{#  } }}
                                    {{#  } }}
                                {{#  } }}
                            {{# } else  { }}
                            <!--他的选项为空-->
                                <!--正确选项==选项A-->
                                {{#  if(item.questionAnswer.indexOf("A")!=-1){ }}
                                    <div class="radios radioCorrectBox">
                                        <input type="radio" disabled value="A" checked disabled="disabled">
                                        <label class="radioStyle radioCorrect radioStyleOther">A.{{ item.optionA }}</label>
                                    </div>
                                <!--正确选项!=选项A-->
                                {{# } else  { }}
                                    <div class="radios">
                                        <input type="radio" disabled value="A" disabled="disabled">
                                        <label class="radioStyle">A.{{ item.optionA }}</label>
                                    </div>
                                {{#  } }}
                                <!--正确选项==选项B-->
                                {{#  if(item.questionAnswer.indexOf("B")!=-1){ }}
                                    <div class="radios radioCorrectBox">
                                        <input type="radio" disabled value="B" checked disabled="disabled">
                                        <label class="radioStyle radioCorrect radioStyleOther">B.{{ item.optionB }}</label>
                                    </div>
                                <!--正确选项!=选项B-->
                                {{# } else  { }}
                                    <div class="radios">
                                        <input type="radio" disabled value="B" disabled="disabled">
                                        <label class="radioStyle">B.{{ item.optionB }}</label>
                                    </div>
                                {{#  } }}
                                <!--存在选项C-->
                                {{#  if(item.optionC!=null && item.optionC.length>0){ }}
                                    <!--正确选项==选项C-->
                                    {{#  if(item.questionAnswer.indexOf("C")!=-1){ }}
                                    <div class="radios radioCorrectBox">
                                        <input type="radio" disabled value="C" checked disabled="disabled">
                                        <label class="radioStyle radioCorrect radioStyleOther">C.{{ item.optionC }}</label>
                                    </div>
                                    <!--正确选项!=选项C-->
                                    {{# } else  { }}
                                    <div class="radios">
                                        <input type="radio" disabled value="C" disabled="disabled">
                                        <label class="radioStyle">C.{{ item.optionC }}</label>
                                    </div>
                                    {{#  } }}
                                {{#  } }}
                                <!--存在选项D-->
                                {{#  if(item.optionD!=null && item.optionD.length>0){ }}
                                    <!--正确选项==选项D-->
                                    {{#  if(item.questionAnswer.indexOf("D")!=-1){ }}
                                    <div class="radios radioCorrectBox">
                                        <input type="radio" disabled value="D" checked disabled="disabled">
                                        <label class="radioStyle radioCorrect radioStyleOther">D.{{ item.optionD }}</label>
                                    </div>
                                    <!--正确选项!=选项D-->
                                    {{# } else  { }}
                                    <div class="radios">
                                        <input type="radio" disabled value="D" disabled="disabled">
                                        <label class="radioStyle">D.{{ item.optionD }}</label>
                                    </div>
                                    {{#  } }}
                                {{#  } }}
                                <!--存在选项E-->
                                {{#  if(item.optionE!=null && item.optionE.length>0){ }}
                                    <!--正确选项==选项E-->
                                    {{#  if(item.questionAnswer.indexOf("E")!=-1){ }}
                                    <div class="radios radioCorrectBox">
                                        <input type="radio" disabled value="E" checked disabled="disabled">
                                        <label class="radioStyle radioCorrect radioStyleOther">E.{{ item.optionE }}</label>
                                    </div>
                                    <!--正确选项!=选项E-->
                                    {{# } else  { }}
                                    <div class="radios">
                                        <input type="radio" disabled value="E" disabled="disabled">
                                        <label class="radioStyle">E.{{ item.optionE }}</label>
                                    </div>
                                    {{#  } }}
                                {{#  } }}
                                <!--存在选项F-->
                                {{#  if(item.optionF!=null && item.optionF.length>0){ }}
                                    <!--正确选项==选项F-->
                                    {{#  if(item.questionAnswer.indexOf("F")!=-1){ }}
                                    <div class="radios radioCorrectBox">
                                        <input type="radio" disabled value="F" checked disabled="disabled">
                                        <label class="radioStyle radioCorrect radioStyleOther">F.{{ item.optionF }}</label>
                                    </div>
                                    <!--正确选项!=选项F-->
                                    {{# } else  { }}
                                    <div class="radios">
                                        <input type="radio" disabled value="F" disabled="disabled">
                                        <label class="radioStyle">F.{{ item.optionF }}</label>
                                    </div>
                                    {{#  } }}
                                {{#  } }}

                            {{#  } }}
                        </div>
                    {{#  } }}
                </div>
                <div class="content marb160">
                    <div class="answerDetail">
                        {{#  if(item.hasOwnProperty("hisOption")){ }}
                        <!--他的选项不为空-->
                            {{#  if(item.isPass == 1){ }}
                                <h6 style="margin-bottom: 8px">答对了</h6>
                            {{# } else  { }}
                                <h6 style="margin-bottom: 8px;color: #fe6e51" >答错了</h6>
                            {{#  } }}
                        {{# } else  { }}
                        <!--他的选项为为空-->
                            <h6 style="margin-bottom: 8px;color: #999;">未答题</h6>
                        {{#  } }}
                        <h6>正确答案：{{ item.questionAnswer }}</h6>
                        <p>答案解析：{{ item.questionAnalysis }}</p>
                    </div>
                </div>
            </div>
            {{#  }); }}
        </div>
    </div>
    {{#  if(d.length === 0){ }}
    无数据
    {{#  } }}
</script>
<div id="view"></div>
<div class="Mbottom tac">

</div>
</body>
<script src="../../../layuiadmin/layui/layui.js"></script>
<script type="text/javascript" src="/mp/js/mobile.js"></script>
<script type="text/javascript" src="/mp/js/common/common.js"></script>
<script type="text/javascript" src="/mp/swiper4/js/swiper.min.js"></script>

<script>
    layui.config({
        base: '../../../layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'laytpl'], function(){
        var laytpl = layui.laytpl
            ,$ = layui.$;
        var answer = window.localStorage.getItem("answerItem");
        var data = JSON.parse(answer);
        var getTpl = demo.innerHTML
            ,view = document.getElementById('view');
        laytpl(getTpl).render(data, function(html){
            view.innerHTML = html;
        });
        //页面滑动
        var mySwiper = new Swiper('.swiper-container',{
            on: {
                init: function(){
                    var orderId = getQueryString("orderId");
                    $("#questionIndex").text("第"+orderId+"题");
                    //获取初始化位置
                    var index = parseInt(orderId)-1;
                    this.slideTo(index, 500, false);//切换到第一个slide，速度为1秒

                },
                slideChangeTransitionStart: function(){
                    var index = parseInt(this.realIndex)+1;
                    $("#questionIndex").text("第"+index+"题");
                }
            }
        });



    });
</script>
</html>